package com.demo.builder;

/**
 * @Author likz
 * @Date 2025/7/24 9:56
 * @Description 测试类
 *
 * 使用场景 StringBuilder、StringBuffer
 **/
public class Client {

    public static void main(String[] args) {
        showBike(new OfoBuilder());
        showBike(new MobikeBuilder());
    }
    private static void showBike(Builder builder) {
        Director director = new Director(builder);
        Bike bike = director.construct();
        System.out.println(bike.getFrame());
        System.out.println(bike.getSeat());
    }

}
